package com.zscat.mallplus.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zscat.mallplus.utils.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 专题评论表
 * </p>
 *
 * @author zscat
 * @since 2019-04-17
 */
@Data
@ApiModel
@TableName("cms_subject_comment")
@ToString
public class CmsSubjectComment extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(hidden = true)
	private Long id;

	/**
	 * 所属专题
	 */
	@TableField("subject_id")
	@ApiModelProperty(value = "文章ID", required = true)
	private Long subjectId;

	private String title;
	
	/**
	 * 用户ID
	 */
	@TableField("member_id")
	@ApiModelProperty(hidden = true)
	private Long memberId;

	/**
	 * 用户名
	 */
	@TableField("member_nick_name")
	@ApiModelProperty(hidden = true)
	private String memberNickName;

	/**
	 * 用户图标
	 */
	@TableField("member_icon")
	@ApiModelProperty(hidden = true)
	private String memberIcon;

	/**
	 * 内容
	 */
	@TableField("content")
	@ApiModelProperty(value = "评论内容", required = false)
	private String content;

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	@ApiModelProperty(hidden = true)
	private Date createTime;

	/**
	 * 状态：0->隐藏；1->显示
	 */
	@TableField("show_status")
	@ApiModelProperty(hidden = true)
	private Integer showStatus;

	/**
	 * 回復内容
	 */
	@TableField("reply_content")
	@ApiModelProperty(value = "回復内容", required = false)
	private String replyContent;

	/**
	 * 回復时间
	 */
	@TableField("reply_time")
	@ApiModelProperty(hidden = true)
	private Date replyTime;
	
	private String storeName;
}
